package games.ninJump.data
{
	import flash.events.Event;
	import flash.events.EventDispatcher;
	import flash.events.IEventDispatcher;
	
	public class NinjaState extends EventDispatcher
	{
		public static const NINJA_CLIMBING:String = "climbing";
		public static const NINJA_FALLING:String = "falling";
		public static const NINJA_JUMPING:String = "jumping";
		
		private var m_state:String;
		
		public function NinjaState(target:IEventDispatcher=null)
		{
			super(target);
			m_state  = NINJA_CLIMBING;
		}
		
		public function set state(n:String):void
		{
			m_state = n;
			dispatchEvent(new Event(Event.CHANGE));
		}
		
		public function get state():String
		{
			return m_state;
		}
	}
}